﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WebFetch
{
    public enum TagsType
    {
        /// <summary>
        /// 
        /// </summary>
        DoubleCloseTags,
        /// <summary>
        /// 
        /// </summary>
        SingleCloseTags
    }

    class TagAttribute
    {
        private string attributeName;
        private string attributeValue;

        public string AttributeName
        {
            get { return attributeName; }
            set { attributeName = value; }
        }

        public string AttributeValue
        {
            get { return attributeValue; }
            set { attributeValue = value; }
        }
    }
    class Tags
    {
        #region Private Member
        private Tags parentTags;
        private List<Tags> childTags;
        private string tagsName;
        private List<TagAttribute> attributes;
        private string tagsContent;
        private TagsType type;

        #endregion

        /// <summary>
        /// public Constractor
        /// </summary>
        public Tags()
        {
            type = TagsType.DoubleCloseTags;//use double close Tags as default.
        }

        /// <summary>
        /// 
        /// </summary>
        public string TagsName
        {
            get { return tagsName; }
            set { tagsName = value; }
        }

        /// <summary>
        /// 
        /// </summary>
        public string TagsContent
        {
            get { return tagsContent; }
            set { tagsContent = value; }
        }

        /// <summary>
        /// 
        /// </summary>
        public TagsType Type
        {
            get { return type; }
            set { type = value; }
        }
    }
}
